﻿<Activity x:Class="{x:Null}" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:hbwa="clr-namespace:Headsight.BPMN2WF.WF.Activities;assembly=Headsight.BPMN2WF.WF.Activities" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Flowchart mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces">
    <Flowchart.Variables>
      <Variable x:TypeArguments="x:String" Name="FlowDecisionVariable" />
    </Flowchart.Variables>
    <Flowchart.StartNode>
      <x:Reference>__ReferenceID5</x:Reference>
    </Flowchart.StartNode>
    <FlowStep x:Name="__ReferenceID0">
      <hbwa:UserTask Text="Name: branch_1_id">
        <hbwa:UserTask.EncodedParameters>
          <InArgument x:TypeArguments="x:String">
            <Literal x:TypeArguments="x:String" Value="" />
          </InArgument>
        </hbwa:UserTask.EncodedParameters>
      </hbwa:UserTask>
    </FlowStep>
    <FlowStep x:Name="__ReferenceID1">
      <hbwa:UserTask Text="Name: branch_2_id">
        <hbwa:UserTask.EncodedParameters>
          <InArgument x:TypeArguments="x:String">
            <Literal x:TypeArguments="x:String" Value="" />
          </InArgument>
        </hbwa:UserTask.EncodedParameters>
      </hbwa:UserTask>
    </FlowStep>
    <FlowStep x:Name="__ReferenceID2">
      <Throw Exception="[New System.Exception(&quot;Next flow step could not be determined and BPMN source model has not defined any default branch. BPMN execution semantics require to throw this exception.&quot;)]" />
    </FlowStep>
    <FlowSwitch x:TypeArguments="x:String" Default="{x:Reference __ReferenceID2}" x:Name="__ReferenceID3" Expression="[FlowDecisionVariable]">
      <x:Reference>__ReferenceID0<x:Key>Name: branch_1_id (id: branch_1_id)</x:Key></x:Reference>
      <x:Reference>__ReferenceID1<x:Key>Name: branch_2_id (id: branch_2_id)</x:Key></x:Reference>
    </FlowSwitch>
    <FlowStep x:Name="__ReferenceID4">
      <Sequence DisplayName="Name: branch_2_id (id: branch_2_id)">
        <If Condition="[True = False]">
          <If.Then>
            <Assign>
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[FlowDecisionVariable]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">["Name: branch_1_id (id: branch_1_id)"]</InArgument>
              </Assign.Value>
            </Assign>
          </If.Then>
        </If>
        <If Condition="[True = False]">
          <If.Then>
            <Assign>
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">[FlowDecisionVariable]</OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">["Name: branch_2_id (id: branch_2_id)"]</InArgument>
              </Assign.Value>
            </Assign>
          </If.Then>
        </If>
      </Sequence>
      <FlowStep.Next>
        <x:Reference>__ReferenceID3</x:Reference>
      </FlowStep.Next>
    </FlowStep>
    <FlowStep x:Name="__ReferenceID5">
      <WriteLine Text="start" />
      <FlowStep.Next>
        <x:Reference>__ReferenceID4</x:Reference>
      </FlowStep.Next>
    </FlowStep>
  </Flowchart>
</Activity>